<template>
  <div>
    <lunbotu :lunboList="lunboList" :isfull="true"></lunbotu>

    <!-- 六宫格导航 MUI-->
    <ul class="mui-table-view mui-grid-view mui-grid-9">
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/newsList">
		      <img src="../../images/menu1.png" alt="">
		      <div class="mui-media-body">新闻资讯</div>
        </router-link>
      </li>
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/photosList">
		      <img src="../../images/menu2.png" alt="">
		      <div class="mui-media-body">图片分享</div>
        </router-link>
      </li>
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/goodsList">
		      <img src="../../images/menu3.png" alt="">
		      <div class="mui-media-body">商品购买</div>
        </router-link>
      </li>
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/comments">
		      <img src="../../images/menu4.png" alt="">
		      <div class="mui-media-body">留言反馈</div>
        </router-link>
      </li>
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/videos">
		      <img src="../../images/menu5.png" alt="">
		      <div class="mui-media-body">视频专区</div>
        </router-link>
      </li>
		  <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/jionUs">
		      <img src="../../images/menu6.png" alt="">
		      <div class="mui-media-body">联系我们</div>
        </router-link>
      </li>
		</ul> 
  </div>
</template>
<script>
/* 导入提示模块 */
import { Toast } from "mint-ui";
import lunbotu from "../subcomponents/lunbotu.vue";
export default {
  data() {
    return {
      lunboList: [
        {
          src:
            "//gw.alicdn.com/imgextra/i1/40/TB2qRJ2d2DH8KJjy1XcXXcpdXXa_!!40-0-luban.jpg_q50.jpg",
          url:
            "https://pages.tmall.com/wow/import/18568/jinkoumuying?wh_weex=true&scm=2027.1007_12948_90513_100200300000000_84900_6_125554_19175.19175.26742&item_id=524393415278&activity_id=125554&spm=a215s.7406091.1.home-1-5-6&locate=home-1-5-6"
        },
        {
          src:
            "//aecpm.alicdn.com/simba/img/TB1CWf9KpXXXXbuXpXXSutbFXXX.jpg_q50.jpg",
          url:
            "https://jusp.tmall.com/act/o/juxunnong6?scm=2027.1007_12948_90513_100200300000000_84900_1_126020_18943.18943.27272&item_id=552788017833&activity_id=126020&spm=a215s.7406091.1.home-1-5-1&locate=home-1-5-1"
        }
      ]
    };
  },
  created() {
    //在data和methods方法创建完成后调用
    this.getLubotu();
  },
  methods: {
    getLubotu() {
      this.$http.get("api/getlunbo").then(function(result) {
        if (result.body.status == 0) {
          console.log("ok");
        } else {
          Toast("加载图片失败...");
        }
      });
    }
  },
  components: {
    lunbotu
  }
};
</script>
<style lang='scss' scoped>
.mint-swipe {
  width: 100%;
  height: 240px;
  .mint-swipe-item {
    img {
      width: 100%;
      height: 100%;
    }
  }
}
.mui-table-view {
  border: 0;
  background-color: #fff;
  .mui-table-view-cell {
    border: 0;
    img {
      width: 60px;
      height: 60px;
    }
  }
}
</style>
